{% extends "main.html" %}

{% block maincontent %}

<h1>登陆</h1>

{% if failed %}

    <strong>密码错误!</strong>

{% endif %}

<form class="form" action= "/login" method="POST">
	<label for="username">用户</label>
	<input type="text" value="{{ username }}" name="username"/>
	<label for="password">密码</label>
	<input type="password" name="password"/>
	<button type="submit" class="btn">Login</button>
</form>

<a href="/forgot">忘记密码</a>


{% endblock %}